Dynomotion

Group: DynoMotion Message: 12317 From: nkwok Date: 9/26/2015
Subject: Homing with Axis Parameters

Hello,


I am reading SimpleHome3Axis.c and noticed that the following comments:


DisableAxis(0);  // Disable all axes

DisableAxis(1);

DisableAxis(2);


// Set the axis parameters here

// after everything is configured in the KMotion Screens

// use copy C Code to clipboard on the configuration screen

// then paste here.  Repeat for each axis


// disable the limits (first save how they were set) 

SaveXLimits = ch0->LimitSwitchOptions;

SaveYLimits = ch1->LimitSwitchOptions;

SaveZLimits = ch2->LimitSwitchOptions;

ch0->LimitSwitchOptions = 0;

ch1->LimitSwitchOptions = 0;

ch2->LimitSwitchOptions = 0;


Why do I have to copy and paste the axis parameters here again if it is already initialized earlier with any thread?  Thanks!


Regards,

Norman

Group: DynoMotion Message: 12319 From: Tom Kerekes Date: 9/26/2015
Subject: Re: Homing with Axis Parameters
Hi Norman,

You are correct you don't as long as the parameters have been somehow set previously.  But it doesn't hurt and that way you can have one Program or Button to Initialize and Home everything in one step.  It up to you how you want things to work.

HTH
Regards
TK